﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="newoutfile.aspx.cs" Inherits="Mocola.Net.Web.newoutfile" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>CsLand Ams v1.0 - 中新置地档案管理系统</title>
    <meta name="description" content="CsLand Ams v1.0 - 中新置地档案管理系统" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    
    <link rel="stylesheet" href="css/content.css" type="text/css" />
    <link rel="stylesheet" href="css/ui.css" type="text/css" />
    <link rel="stylesheet" href="css/sys.css" type="text/css" />
    <link rel="stylesheet" href="css/table.css" type="text/css" />
    <link rel="stylesheet" href="scripts/formcheck/theme/classic/formcheck.css" type="text/css" media="screen" />
    
    <!--[if IE]>
	    <script type="text/javascript" src="scripts/excanvas-compressed.js"></script>	
	    <style type="text/css"> html{ height: 100%; overflow: auto; } </style>	
    <![endif]-->

    <script type="text/javascript" src="scripts/mootools-1.2-core.js"></script>
    <script type="text/javascript" src="scripts/mootools-1.2-more.js"></script>
    <script type="text/javascript" src="scripts/mocha.js"></script>
    <script type="text/javascript" src="scripts/mocola-funs.js"></script>
    <script type="text/javascript" src="scripts/formcheck/lang/cn.js"> </script>
    <script type="text/javascript" src="scripts/formcheck/formcheck.js"> </script>
</head>
<body style="padding: 5px;">
    <form id="form1" runat="server">
    <input type="hidden" id="hidTid" name="Tid" />
    <input type="hidden" id="hidEid" name="Eid" />
    <table class="mytable" cellspacing="0" summary="菜单栏" style="width: 100%">
        <tr>
            <th scope="row" class="specalt">
                <%--<input id="btnSave1" type="submit" value="保存外来文件" class="btnzc" style="width: 140px" />--%>
                <asp:Button ID="btnSave1" runat="server" Text="保存外来文件" CssClass="btnzc" Width="140" onclick="btnSave_Click" />
                <input id="btnBack" type="button" value="返回列表" class="btnzc" style="width: 100px" onclick="back()" />
            </th>
        </tr>
    </table>
    <table class="mytable" cellspacing="0" summary="新增文件表单" style="width: 100%; margin-top: 5px;">
        <tr>
            <th scope="row" class="spec">
                <div class="title1">
                    填写外来文件信息：</div>
                <div class="frmline1">
                    <label class="label2">
                        1. 文件号：</label>
                    <%--<input id="txtWenJianHao" type="text" class="inputbox validate['required']" name="tWenJianHao" />--%>
                    <asp:TextBox ID="txtWenJianHao" runat="server" Cssclass="inputbox validate['required']"></asp:TextBox>
                </div>
                <div class="frmline1">
                    <label class="label2">
                        2. 文件名称：</label>
                    <%--<input id="txtMingCheng" type="text" class="inputbox validate['required']" name="MingCheng" />--%>
                    <asp:TextBox ID="txtMingCheng" runat="server" Cssclass="inputbox validate['required']"></asp:TextBox>
                </div>
                <div class="frmline1">
                    <label class="label2">
                        3. 发文机关：</label>
                    <%--<input id="txtFanWenJiGuan" type="text" class="inputbox" name="FanWenJiGuan" />--%>
                    <asp:TextBox ID="txtFanWenJiGuan" runat="server" Cssclass="inputbox"></asp:TextBox>
                </div>
                <div class="frmline1">
                    <label class="label2">
                        4. 发文日期：</label>
                        <%--<input id="txtFaWenRiQi_Nian" name="FaWenRiQi_Nian" type="text" class="inputbox validate['digit[2009,3000]']" value="" style="width: 80px;" />--%>
                        <asp:TextBox ID="txtFaWenRiQi_Nian" runat="server" Cssclass="inputbox validate['digit[2009,3000]']" style="width: 80px;"></asp:TextBox>
                        年
                        <%--<input type="text" class="inputbox validate['digit[1,12]']" value="" style="width: 50px;" id="txtFaWenRiQi_Yue" name="FaWenRiQi_Yue" />--%>
                        <asp:TextBox ID="txtFaWenRiQi_Yue" runat="server" Cssclass="inputbox validate['digit[1,12]']" style="width: 50px;"></asp:TextBox>
                        月
                        <%--<input type="text" class="inputbox validate['digit[1,31]']" value="" style="width: 30px;" id="txtFaWenRiQi_Ri" name="FaWenRiQi_Ri" />--%>
                        <asp:TextBox ID="txtFaWenRiQi_Ri" runat="server" Cssclass="inputbox validate['digit[1,31]']" style="width: 30px;"></asp:TextBox>
                        日
                </div>
                <div class="frmline1">
                    <label class="label2">
                        5. 接收日期：</label>
                    <%--<input id="txtJieShouRiQi_Nian" name="JieShouRiQi_Nian" type="text" class="inputbox validate['digit[2009,3000]']" value="" style="width: 80px;" />--%>
                    <asp:TextBox ID="txtJieShouRiQi_Nian" runat="server" Cssclass="inputbox validate['digit[2009,3000]']" style="width: 80px;"></asp:TextBox>
                    年
                    <%--<input type="text" class="inputbox validate['digit[1,12]']" value="" style="width: 50px;" id="txtJieShouRiQi_Yue" name="JieShouRiQi_Yue" />--%>
                    <asp:TextBox ID="txtJieShouRiQi_Yue" runat="server" Cssclass="inputbox validate['digit[1,12]']" style="width: 50px;"></asp:TextBox>
                    月
                    <%--<input type="text" class="inputbox validate['digit[1,31]']" value="" style="width: 30px;" id="txtJieShouRiQi_Ri" name="JieShouRiQi_Ri" />--%>
                    <asp:TextBox ID="txtJieShouRiQi_Ri" runat="server" Cssclass="inputbox validate['digit[1,31]']" style="width: 30px;"></asp:TextBox>
                    日
                </div>
                <div class="frmline1">
                    <label class="label2">
                        6. 保存期限：</label>
                    <%--<input id="txtBaoCunQiXian" type="text" class="inputbox" name="BaoCunQiXian" />--%>
                    <asp:DropDownList ID="ddlBaoCunQiXian" runat="server" Width="100px" >
                        <asp:ListItem Value="0">永久</asp:ListItem>
                        <asp:ListItem Value="1">长期</asp:ListItem>
                        <asp:ListItem Value="2">短期</asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="frmline1">
                    <label class="label2">
                        7. 存档号：</label>
                    <%--<input id="txtCunDangHao" type="text" class="inputbox" name="CunDangHao" />--%>
                    <asp:TextBox ID="txtCunDangHao" runat="server" class="inputbox"></asp:TextBox>
                </div>
                <div class="frmline1">
                    <label class="label2">
                        8. 有效状态：</label>
                    <%--<select name="sleYouXiaoZhuangTai">
                        <option value="1">有效</option>
                        <option value="0">无效</option>
                    </select>--%>
                    <asp:DropDownList ID="ddlStatus" runat="server" Width="100px" >
                        <asp:ListItem Value="0">无效</asp:ListItem>
                        <asp:ListItem Value="1" Selected>有效</asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="frmline1">
                    <label class="label2">
                        9. 备注：</label>
                    <%--<textarea name="txtBeiZhu" class="inputbox" style="width:250px;height:40px"></textarea>--%>
                    <asp:TextBox ID="txtBeiZhu" runat="server" TextMode="MultiLine" Cssclass="inputbox" style="width:250px;height:40px"></asp:TextBox>
                </div>
                <div class="frmline1" id="divAttachment" style="display: block;">
                    <label class="label2">
                        10. 附件：</label>
                    <input id="btnAttachment" onclick="OpenWinAttachment()" type="button" value="附件"
                        class="btnzc" style="width: 100px" />
                </div>
            </th>
        </tr>
    </table>
    <table class="mytable" cellspacing="0" summary="菜单栏" style="width: 100%; margin-top: 5px;">
        <tr>
            <th scope="row" class="specalt">
                <%--<input id="btnSave2" type="submit" value="保存外来文件" class="btnzc" style="width: 140px" />--%>
                <asp:Button ID="btnSave2" runat="server" Text="保存外来文件" CssClass="btnzc" Width="140" onclick="btnSave_Click" />
                <input id="Button1" type="button" value="返回列表" class="btnzc" style="width: 100px" onclick="back()" />
            </th>
        </tr>
    </table>
    </form>
    <script type="text/javascript">
        var fchkFrom = null;
        var RqUrl = 'ajax/AddFile.aspx';
        
        function back() {
            var tid = gup('tid');
            var eid = gup('eid');
            var rurl = (gup('lb') == 'P') ? 'mapfiles.aspx' : 'mgfiles.aspx'; /* P:项目类 M:管理类 */
            location.replace(rurl + '?tid=' + tid + '&eid=' + eid);
        }

        window.addEvent('domready', function() {
            fchkFrom = new FormCheck('form1');

            $('hidTid').value = gup('tid');
            $('hidEid').value = gup('eid');
        });
        function OpenWinAttachment()
        {
            new window.parent.MochaUI.Window({
                id: 'winNewAttachment',
                title: '上传附件管理',
                loadMethod: 'iframe',
                contentURL: 'Attachment.aspx?ProjType='+gup('lb')+'&FileType=O&id='+gup("id"),
                width: 600,
                height: 450,
                resizable:false
            });
        }
    </script>
</body>
</html>
